Just reinvesting the stocks will not be taxed. It is when you spend the money the tax is calculated.